﻿namespace CTP.CRM.Repository.Attributes;

/// <summary>
/// 
/// </summary>
public class CompareHelperAttribute : Attribute
{
    /// <summary>
    /// 表名
    /// </summary>
    public string TableName { get; }
    
    /// <summary>
    /// Id
    /// </summary>
    public string IdColumn { get; }
    
    /// <summary>
    /// 
    /// </summary>
    public string TextColumn { get; }
    
    /// <summary>
    /// 分隔符
    /// </summary>
    public string Separator { get; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="tableName"></param>
    /// <param name="idColumn"></param>
    /// <param name="textColumn"></param>
    /// <param name="separator"></param>
    public CompareHelperAttribute(string tableName, string idColumn, string textColumn, string separator = ",")
    {
        TableName = tableName;
        IdColumn = idColumn;
        TextColumn = textColumn;
        Separator = separator;
    }
}